package com.itheima.pojo;

import java.io.Serializable;

public class Food implements Serializable {
    private String id;
    private String name;
    private String explains;
    private String units;
    private String age;

    public Food() {
    }

    public Food(String id, String name, String explain, String unit, String age) {
        this.id = id;
        this.name = name;
        this.explains = explain;
        this.units = unit;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExplain() {
        return explains;
    }

    public void setExplain(String explain) {
        this.explains = explain;
    }

    public String getUnit() {
        return units;
    }

    public void setUnit(String unit) {
        this.units = unit;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", explain='" + explains + '\'' +
                ", unit='" + units + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
